<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ page import="com.yls.except.util.GeneralResult" %>
<%@ page import="org.json.JSONArray" %>
<%@ page import="com.yls.except.util.StringIsempty" %>
<%@ page import="org.json.JSONObject" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <title>我的订单</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    <!-- 加载Css 样式 -->
    <link href="css/MineOrderMain_Css.css" rel="stylesheet" type="text/css"/>
    <link href="css/MineOrderItem_Css.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="js/public.js"></script>
    <script type="text/javascript" src="js/indent/my_order.js"></script>
    <script>
        function back() {
            window.history.back(-1);
        }
    </script>
</head>

<body style="background-color: #F2F2F2;">

<form id="payinfo" method="post" action="/except/files/pay.jsp">
    <input type="hidden" name="indenttype" id="2"/>
    <input type="hidden" name="nonce_str" id="nonce_str"/>
    <input type="hidden" name="result_sign" id="result_sign"/>
    <input type="hidden" name="timestamp" id="timestamp"/>
    <input type="hidden" name="prepay_id" id="prepay_id"/>
</form>

<jsp:include page="/public.jsp"/>
<input type="hidden" id="indentstate" value="<%=request.getParameter("indentstate")%>"/>
<input type="hidden" id="indentnum"/>
<input type="hidden" id="page"/>
<!-- 固定的title 样式 -->
<%--<div class="header">--%>
    <%--<div align="left" class="a">--%>
        <%--<img src="img/arrow_eft_circle.png" style="padding: 10px;height: 28px; width: 28px;" onclick="back()"/>--%>
    <%--</div>--%>

    <%--<div align="center" class="a">--%>
        <%--<span style="padding: 15px;font-size: 20px;color: white;">我的订单</span>--%>
    <%--</div>--%>

    <%--<div align="right" class="a">--%>
        <%--<img src="img/more.png" style="padding: 10px;height: 28px;width: 28px;"/>--%>
    <%--</div>--%>
<%--</div>--%>

<!-- 切换标题栏 -->

<div class="title" id="order">
    <div class="all" onclick="one()">
        <span id="span_one" class="span_red">全部</span>
        <hr id="hr_one" class="hr_red"/>
    </div>

    <div class="all" onclick="two()">
        <span id="span_two" class="span_gray">待付款</span>
        <hr id="hr_two" class="hr_white"/>
    </div>

    <div class="all" onclick="three()">
        <span id="span_three" class="span_gray">待发货</span>
        <hr id="hr_three" class="hr_white"/>
    </div>

    <div class="all" onclick="four()">
        <span id="span_four" class="span_gray">待收货</span>
        <hr id="hr_four" class="hr_white"/>
    </div>
</div>
<hr style="height: 1px; width: 100%; float: right; background-color: #f4f4f4; border: none;margin-top: 1px; "/>

<!-- 页面没有数据加载div -->
<div style="text-align: center;margin-top: 35%;display: none" id="not_data">
    <img src="img/data_null.png" style="height: 140px;width: 116px;" />
</div>

<div id="load_more_page" style="margin-top: 50px;"></div>


<!-- 加载弹窗支付信息布局 -->

<!-- 这里需要把两个布局格式区分出来
      他本来就不属于在文档流中，position:fixed;或使他脱离文档流
     区分出来让他两个独立加载。
 -->
<div id="pay_bg" style="background: rgba(0,0,0,0.5);height: 100%;width: 100%;position: fixed;top: 0;display: none;"></div>
<div class="cqchoosenum" id="pay_div">
    <div class="pop_pay">
        <div class="pop_title">
            <div class="pop_cancel">
                <img src="img/cancel.png" onclick="showPopup()"/>
            </div>
            <div style=" height: 50px;line-height: 50px;background-color: white;margin-bottom: 1px;font-size: 16px;">支付信息</div>
        </div>
        <hr style="height: 1px; width: 100%; float: right; background-color: #f4f4f4; border: none;"/>
        <div class="clearboth"></div>
        <div class="pay_style" id="paytype">
            <span class="span_one">支付方式</span>
            <input class="radio_type" type="radio" id="spare_pay" name="paytype" value="1"/> <span class="span_two">余额(￥<i id="sparemoney">200.00</i>)</span>
            <input class="radio_type" type="radio" id="wechat_pay" name="paytype" value="2"/> <span class="span_two">微信支付</span>
        </div>
        <hr style="height: 1px; width: 97%; float: right; background-color: #f4f4f4; border: none;"/>
        <div class="pay_money_div">
            <span style="font-size: 16px;">应付金额</span>
            <span class="pay_money">￥:<i id="money">109.00</i></span>
        </div>
        <!-- 确认支付 -->
        <div id="buy" class="buy_bg" onclick="pay_indent();">
            <span style="width: 90%;font-size: 16px;color: white;">确认支付</span>
        </div>
    </div>
</div>
<jsp:include page="/files/public_hint.jsp"/>
</body>
</html>